package com.anjubao.parking.municipal.common.exception;

import com.anjubao.parking.municipal.common.dto.ApiCode;
import com.anjubao.parking.municipal.common.dto.ApiResult;
import org.springframework.http.HttpStatus;

/**
 * 通用接口层异常类
 * 
 * @author chenfang
 *
 */
public abstract class AbstractHttpException extends RuntimeException {

	private static final long serialVersionUID = -1713129594004951820L;

	private ApiCode apiCode;

	public AbstractHttpException(String msg) {
		super(msg);
	}

	public AbstractHttpException(String msg, Exception e) {
		super(msg, e);
	}


	public ApiCode getApiCode() {
		return apiCode;
	}

	public void setApiCode(ApiCode apiCode) {
		this.apiCode = apiCode;
	}
}
